﻿using System;
using System.Data;
using System.Xml.Serialization;

namespace Alex.DataLibrary.Tables
{
	/// <summary>
	/// Стандартная таблица данных.
	/// </summary>
	
	[XmlInclude(typeof(DataTableDifference))]
	[XmlRoot("DataTableStandart")]
	public class DataTableStandart
	{		
    	public virtual Enums.TableType TypeTable 
		{ 
			get
			{
                return Enums.TableType.Standart;
			}
		}

		[XmlElement("DataTable")]
		public DataTable Table { get; set; }
		
		public DataTableStandart()
		{			
			Table = new DataTable();
		}
		
		public DataTableStandart(string tableName)
		{					
			Table = new DataTable(tableName);
		}

        public override string ToString()
        {
            return Table.TableName;
        }

        public virtual void Initialize()
        {
        }
	}
}
